//
//  LPFingerPrintHeaderView.m
//  LovingPartyBuilding
//
//  Created by 刘应平 on 17/5/19.
//  Copyright © 2017年 刘应平. All rights reserved.
//

#import "LPFingerPrintHeaderView.h"

@interface LPFingerPrintHeaderView ()
/**  指纹图片  */
@property (strong, nonatomic) UIImageView  *fingerImageView;
/**  指纹  */
@property (strong, nonatomic) UILabel  *fingerLabel;

@end
@implementation LPFingerPrintHeaderView

/**  150  */
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.backgroundColor = [UIColor whiteColor];
        [self addSubview:self.fingerImageView];
        [self addSubview:self.fingerLabel];
        self.fingerImageView.sd_layout
        .topSpaceToView(self,30 * [UIScreen zj_screenHScale])
        .centerXEqualToView(self)
        .heightIs(60 * [UIScreen zj_screenHScale])
        .widthIs(60 * [UIScreen zj_screenHScale]);
        
        self.fingerLabel.sd_layout
        .topSpaceToView(self.fingerImageView,20 * [UIScreen zj_screenHScale])
        .centerXEqualToView(self)
        .widthIs([UIScreen zj_screenWith])
        .heightIs(20 * [UIScreen zj_screenHScale]);
        
        UIView *under = [UIView new];
        under.backgroundColor = [UIColor themeGrayColor];
        [self addSubview:under];
        under.sd_layout.leftEqualToView(self).bottomEqualToView(self).widthIs([UIScreen zj_screenWith]).heightIs(1.5);
    }
    return self;
}



- (UIImageView *)fingerImageView{
    if (!_fingerImageView) {
        _fingerImageView = [UIImageView new];
        _fingerImageView.image = [UIImage imageNamed:@"set_yinsi_zhiwendenglu"];
    }
   return _fingerImageView;
}

- (UILabel *)fingerLabel{
    if (!_fingerLabel) {
        _fingerLabel = ({
            UILabel *label = [UILabel new];
            label.textAlignment = NSTextAlignmentCenter;
            label.textColor = [UIColor textBlackColor];
            label.backgroundColor = [UIColor clearColor];
            label.font = [UIFont titleTextFont];
            label.text = @"指纹设置";
            label;
        });
    }
    return _fingerLabel;
}



@end
